import request from "@/utils/axios";

export function getRouter(data) {
	return request({
		path: "/admin/getRouter",
		data
	});
}
export function getRouterSystem(data) {
	return request({
		path: "/admin/getRouterSystem",
		data
	});
}
export function getUserInfo(data) {
	return request({
		path: "/admin/getUserInfo",
	});
}
export function getRoles(data) {
	return request({
		path: "/admin/getRoles",
		data
	});
}
export function getRolesAll(data) {
	return request({
		path: "/admin/getRolesAll",
		data
	});
}
export function addRoles(data) {
	return request({
		path: "/admin/addRoles",
		data,
	});
}
export function upRoles(data) {
	return request({
		path: "/admin/upRoles",
		data,
	});
}
export function delRoles(data) {
	return request({
		path: "/admin/delRoles",
		data,
	});
}

export function addMenu(data) {
	return request({
		path: "/admin/addMenu",
		data,
	});
}
export function changeMenu(data) {
	return request({
		path: "/admin/changeMenu",
		data,
	});
}
export function delMenu(data) {
	return request({
		path: "/admin/delMenu",
		data,
	});
}
export function getUser(data) {
	return request({
		path: "/admin/getUser",
		data,
	});
}

export function addUser(data) {
	return request({
		path: "/admin/addUser",
		data,
	});
}

export function upUser(data) {
	return request({
		path: "/admin/upUser",
		data,
	});
}
export function upUserPwd(data) {
	return request({
		path: "/admin/upUserPwd",
		data,
	});
}
export function delUser(data) {
	return request({
		path: "/admin/delUser",
		data,
	});
}
export function upTheme(data) {
	return request({
		path: "/admin/upTheme",
		data,
	});
}
export function login(data) {
	return request({
		path: "/admin/login",
		data,
	});
}



//订单信息调用api
export function getOrder(data) {
	return request({
		path: "/admin/getOrder",
		data,
	});
}
export function getOrderById(data) {
	return request({
		path: "/admin/getOrderById",
		data,
	});
}
export function getProcessByProcessIds(data) {
	return request({
		path: "/admin/getProcessByProcessIds",
		data,
	});
}
export function getWorkerByWorkerIds(data) {
	return request({
		path: "/admin/getWorkerByWorkerIds",
		data,
	});
}
export function addOrder(data) {
	return request({
		path: "/admin/addOrder",
		data,
	});
}

export function addOrderForWorker(data) {
	return request({
		path: "/admin/addOrderForWorker",
		data,
	});
}
export function addOrderForProcess(data) {
	return request({
		path: "/admin/addOrderForProcess",
		data,
	});
}
export function delOrderForProcess(data) {
	return request({
		path: "/admin/delOrderForProcess",
		data,
	});
}
export function delOrderForWorker(data) {
	return request({
		path: "/admin/delOrderForWorker",
		data,
	});
}
export function upOrderForProcess(data) {
	return request({
		path: "/admin/upOrderForProcess",
		data,
	});
}

export function upOrder(data) {
	return request({
		path: "/admin/upOrder",
		data,
	});
}
export function delOrder(data) {
	return request({
		path: "/admin/delOrder",
		data,
	});
}

export function delToOrder(data) {
	return request({
		path: "/admin/delToOrder",
		data,
	});
}

export function getAllOrder(data) {
	return request({
		path: "/admin/getAllOrder",
		data,
	});
}



//收益

export function getFinance(data) {
	return request({
		path: "/admin/getFinance",
		data,
	});
}

export function getFinanceNoLimit(data) {
	return request({
		path: "/admin/getFinanceNoLimit",
		data,
	});
}
//工人
export function getWorker(data) {
	return request({
		path: "/admin/getWorker",
		data,
	});
}
export function getUnit(data) {
	return request({
		path: "/admin/getUnit",
		data,
	});
}
export function getCustomer(data) {
	return request({
		path: "/admin/getCustomer",
		data,
	});
}
export function getProcesses(data) {
	return request({
		path: "/admin/getProcesses",
		data,
	});
}
export function delWorker(data) {
	return request({
		path: "/admin/delWorker",
		data,
	});
}
export function delUnit(data) {
	return request({
		path: "/admin/delUnit",
		data,
	});
}
export function delCustomer(data) {
	return request({
		path: "/admin/delCustomer",
		data,
	});
}
export function delProcesses(data) {
	return request({
		path: "/admin/delProcesses",
		data,
	});
}
export function upWorker(data) {
	return request({
		path: "/admin/upWorker",
		data,
	});
}
export function upUnit(data) {
	return request({
		path: "/admin/upUnit",
		data,
	});
}
export function upCustomer(data) {
	return request({
		path: "/admin/upCustomer",
		data,
	});
}
export function upProcesses(data) {
	return request({
		path: "/admin/upProcesses",
		data,
	});
}

export function addWorker(data) {
	return request({
		path: "/admin/addWorker",
		data,
	});
}
export function addUnit(data) {
	return request({
		path: "/admin/addUnit",
		data,
	});
}
export function addCustomer(data) {
	return request({
		path: "/admin/addCustomer",
		data,
	});
}
export function addProcesses(data) {
	return request({
		path: "/admin/addProcesses",
		data,
	});
}